package com.houweishi.module.companydocument.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 文档管理对象 biz_company_document
 * 
 * @author houweishi
 * @date 2023-02-26
 */
public class BizCompanyDocument extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 上传人id（用户id） */
//    @Excel(name = "上传人id", readConverterExp = "用=户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 是否为个人文件（1是 2否） */
    @Excel(name = "是否为个人文件", readConverterExp = "1=是,2=否")
    private String personalStatus;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 文件类型（规章制度、会议记录） */
    @Excel(name = "文件类型", readConverterExp = "规=章制度、会议记录")
    private String fileType;

    /** 文件上传地址 */
    @Excel(name = "文件上传地址")
    private String fileAddress;

    /** 文件是否公开（1是 2 否） */
    @Excel(name = "文件是否公开", readConverterExp = "1=是,2=,否=")
    private String openStatus;

    /** 部门id */
//    @Excel(name = "部门id")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 职位id */
//    @Excel(name = "职位id")
    private Long postId;

    /** 职位 */
    @Excel(name = "职位")
    private String position;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setPersonalStatus(String personalStatus) 
    {
        this.personalStatus = personalStatus;
    }

    public String getPersonalStatus() 
    {
        return personalStatus;
    }
    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileAddress(String fileAddress) 
    {
        this.fileAddress = fileAddress;
    }

    public String getFileAddress() 
    {
        return fileAddress;
    }
    public void setOpenStatus(String openStatus) 
    {
        this.openStatus = openStatus;
    }

    public String getOpenStatus() 
    {
        return openStatus;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("staffId", getStaffId())
            .append("personalStatus", getPersonalStatus())
            .append("staffName", getStaffName())
            .append("fileType", getFileType())
            .append("fileAddress", getFileAddress())
            .append("openStatus", getOpenStatus())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("postId", getPostId())
            .append("position", getPosition())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
